package entity

import "time"

type Coupon struct {
	ID        int       `gorm:"column:id;PRIMARY_KEY"`
	Name      string    `gorm:"column:name"`
	Amount    float64   `gorm:"column:amount"`
	State     int       `gorm:"column:state"`
	Type      int       `gorm:"column:type"`
	Expired   int       `gorm:"column:expired"`
	Remark    string    `gorm:"column:remark"`
	CreatedAt time.Time `gorm:"column:created_at"`
}

func (Coupon) TableName() string {
	return "l_coupon"
}
